# -*- coding:utf-8 -*-
import json


# @Time    : 2023/5/9 11:19
# @Author  : zengwenjia
# @Email   : zengwenjia@lingxi.ai
# @File    : covert.py
# @Software: LLM_internal

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
import utils
import pandas as pd
# 将json文件 转化成待标注的csv

def convert_json_to_csv(path, target_path):
    datas = utils.jload(path)
    result = pd.DataFrame(datas)
    result.to_csv(target_path)


if __name__ == "__main__":
    #convert_json_to_csv("../data_set/insurance/baoxian_result_merge.json", "../data_set/insurance/baoxian_result_merge.csv")
    convert_json_to_csv("../data_set/insurance_planner/insurance_planner_insurance_knowledge.json", "../data_set/insurance_planner/insurance_planner_insurance_knowledge.csv")
